window
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>send data over child window</title>
<script language="javascript" type="text/javascript">
var winRef;
function open_win(){
winRef=window.open("popup.html", "Ratting","width=550,height=170,left=150,top=200,toolbar=1,status=1,");
}

function send_data(){
var g=document.getElementById("_text").value;
winRef.document.getElementById("_child").value=g;
winRef.location.reload();
}
</script>
</head>

<body>

<a href="javascript:void(0);" onclick="open_win();">open window</a><br />
<input type="text" name="_text" id="_text" /><br />

<a href="javascript:void(0);" onclick="send_data();">Send data</a>
</body>
</html>